using System;
using System.Xml.Serialization;

namespace WPChanger
{
	/// <summary>
	/// Program Settings
	/// </summary>
	[Serializable()]
	[XmlRootAttribute(ElementName="Settings",Namespace="")]
	public class Settings
	{
		private string _WPDirectory;
		private bool _EnableTimer;
		private int _TimerInterval;
		private bool _AutoRun;
		private string _PatternMatch;

		public Settings()
		{
			_AutoRun = false;
			_EnableTimer = false;
			_TimerInterval = 0;
			_WPDirectory = "";
			_PatternMatch = "*.*";
		}

		public string PatternMatch
		{
			get
			{
				return _PatternMatch;
			}
			set
			{
				_PatternMatch = value;
			}
		}

		public string WPDirectory
		{
			get
			{
				return _WPDirectory;
			}
			set
			{
				_WPDirectory  = value;
			}
		}

		public bool EnableTimer
		{
			get
			{
				return _EnableTimer;
			}
			set
			{
				_EnableTimer = value;
			}
		}

		public int TimerInterval
		{
			get
			{
				return _TimerInterval;
			}
			set
			{
				_TimerInterval = value;
			}
		}

		public bool AutoRun
		{
			get
			{
				return _AutoRun;
			}
			set
			{
				_AutoRun = value;
			}
		}
	}
}
